#include"processbar.h"
void download()
{
    int total = 1000;
    int cur = 0;
    while(cur <= 1000)
    {
        int dl = (cur*100)/total;
        processbar(dl);
        cur += 10;
        usleep(100000);
    }
    printf("\n");
}
int main()
{
    printf("download1\n");
    download();
    printf("download2\n");
    download();
    printf("download3\n");
    download();
    return 0;
}
